{
    // 对getProp函数进行改造
    function getProp<T, K extends keyof T>(obj: T, key: K) {
        return obj[key]
    }
    let person = { name: 'jack', age: 18, gender: '0' }


    getProp(person,'gender')

}